import requests

word = input("请输入需要翻译的单词:\n")
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36 Edg/101.0.1210.39'}
data = {'kw':word}
result = requests.post(url="https://fanyi.baidu.com/sug",data=data,headers=headers).json()
reList = result['data']

for i in reList:
    print(i['v'],end='\n')